package com.shakespace.template.ui

import android.os.Bundle
import android.view.View
import com.shakespace.template.R
import com.shakespace.template.base.BaseFragment
import com.shakespace.template.databinding.FragmentHomeBinding
import com.shakespace.template.extensions.viewBindings


/**
 *  1. 布局通过构造函数制定，直接在onViewCreated中使用
 */
class HomeFragment : BaseFragment(R.layout.fragment_home) {


    val binding by viewBindings(FragmentHomeBinding::bind)

    override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
        super.onViewCreated(view, savedInstanceState)
        // using binding here
    }

    companion object {
        @JvmStatic
        fun newInstance() = HomeFragment()
    }
}